// plugins/index.js
import tab from './tab'
import auth from './auth'
import modal from './modal'

// 创建全局插件对象
const plugins = {
  $tab: tab,
  $auth: auth,
  $modal: modal
}

// 在App中初始化插件
function initPlugins(app) {
  app.$tab = tab
  app.$auth = auth
  app.$modal = modal
}

export { plugins, initPlugins }